package com.lw.edu.client;

import com.lw.commonutil.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("service-vod")
public interface VodClient {
    //根据视频id删除视频
    @DeleteMapping("/api/vod/inner/remove/{id}")
    public void removeById(@PathVariable("id") String id);

    //批量删除阿里云视频
    @DeleteMapping("/api/vod/inner/removeBatch")
    public void removeBatch(@RequestBody List<String> ids);
}
